<template>
  <div class="not-found-container">
    <div class="icon-404"></div>
    <div class="title">哎呀迷路了...</div>
    <div class="reason">
      <div class="row">可能的原因：</div>
      <ul>
        <li>原来的页面不存在了</li>
        <li>我们的服务器被外星人劫持了</li>
      </ul>
    </div>
    <button class="button" @click="toHomePageHandler()">返回首页</button>
  </div>
</template>

<script>
export default {
  methods: {
    /**
     * 跳转到首页
     */
    toHomePageHandler () {
      this.$router.push('/')
    }
  }
}
</script>

<style lang="less" scoped>
.not-found-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  padding: 20px 0px;
  .icon-404 {
    background-image: url();
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 160px;
    height: 160px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .title {
    border-bottom: 1px solid #f6f6f6;
    color: #262b31;
    font-size: 18px;
    padding-bottom: 20px;
    width: 100%;
    text-align: center;
  }
  .reason {
    color: #9ca4ac;
    font-size: 12px;
    text-align: left;
    width: 230px;
    padding: 16px;
    .row {
      margin-bottom: 4px;
    }
    ul {
      list-style-type: disc;
      li {
        margin-top: 6px;
        margin-left: 36px;
      }
    }
  }
  .button {
    background-color: #239bf0;
    border: 1px solid #ebedef;
    border-radius: 6px;
    color: #fff;
    display: block;
    font-size: 16px;
    outline: none;
    padding: 10px;
    margin-top: 40px;
  }
}
</style>
